package com.aaa.service.fpa;

import com.aaa.entity.fpa.ResultDiv;
import com.aaa.entity.fpa.TestPlanFpa;
import com.aaa.entity.fpa.ViewTestResultFpa;
import com.aaa.entity.mht.TestResultMht;
import com.aaa.entity.system.PageOrder;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ：姚建军（2511037015@qq.com）
 * @date ：：Created in 2022/9/5 16:41
 * @description：
 * @modified By：
 * @version:
 */

public interface ViewResultService {
    /**
     * 查询所有以及条件查询
     * @param viewResultFpa
     * @return
     */
   Page queryAll(PageOrder pageOrder, ViewTestResultFpa viewResultFpa);

    /**
     * 按照id删除
     * @param id
     * @return
     */
    boolean deleteById(int[] id);
    boolean deleteByTesterId( int[] id);
    /**
     * 查询测试计划id
     * @return
     */
    List<ViewTestResultFpa> queryTestPlanId();

    /**
     * 查询result_div
     */
    List<ResultDiv> queryAllResultDiv(Integer id);
    /**
     * @create by:
     * @description: 查询所有数据
     * @create time:
     * @param
     * @return Map<String,Integer>
     */
    Map<String,Integer> queryAllPlanFpa();

 /**
  * 查询视图中所有的结果
  * @return
  */
 List<ViewTestResultFpa> queryResult(int id, String type);


 Page<Map<String, Object>>  getByTesterId(PageOrder pageOrder , Integer testerId);

 /**
  * 查询id
  * @return
  */
 List<TestPlanFpa> queryAllResultFpa();
}
